package com.amani.module.medical_supplies.feign;


import com.amani.module.medical_supplies.config.FeignConfiguration;
import com.amani.module.medical_supplies.fallback.GroupServiceFallback;
import com.github.wxiaoqi.security.api.vo.group.GroupInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "ace-admin",configuration = FeignConfiguration.class,fallback = GroupServiceFallback.class)
public interface IGroupService {
    @RequestMapping(value="/group/selectGroupByUserId",method = RequestMethod.GET)
    //List<GroupInfo> getGroupsByUserId(@PathVariable("userId") int userId);
    List<GroupInfo> getGroupsByUserId();
}
